.ng-cloak.functionRegisterContainer.registerContainer(ng-controller='App.RegisterCtrl')
	h2.bc.title 注&nbsp;&nbsp;册
	form.registerForm.mtop20(ng-show='step==1', name='regstep1form')
		.mbottom20.editInfo
			.inputGradientBG
				.field.icons.mobile
					label.mrem(for='mobile', ng-class='{hidden : mobile.length}') 移动电话
					input(type='tel', gf-input,name='mobile', ng-model='mobile', required, maxlength=13)
			button.getVerifyCode.radius8(ng-show='regstep1form.mobile.$valid', 
				ng-click='getcode()',
				ng-switch='raw', ng-disabled='time != -1').mlem 
					span(ng-switch-when='true') 
						b(ng-show='time == -1') 获取手机验证码
						b(ng-show='time >= 0') {{time}}秒后重新获取
					span(ng-switch-when='false') 重新发送
			.yes(ng-show='mobileError==2 && !error')
			.no(ng-show='mobileError==1 && !error') 
			span(ng-show='error', style='margin-left:10px;')
				.no 
				| {{error}}
		.mbottom20.bc.editInfo
			.inputGradientBG
				.field.icons.verifyCode.radius8
					label.mrem(ng-class='{hidden : verify_code.length}') 请输入手机验证码
					input(type='text', name='verify_code', gf-input, ng-model='verify_code', required, maxlength=6).narrow
			.yes(ng-show='verify_codeError==2')
			.no(ng-show='verify_codeError==1')	
			span(ng-show='verify_codeError==1') 验证码为空
		p.rc *请输入手机收到的验证码，如果一段时间没有收到，请重新获取！

		button(ng-click='submit1()').btn.mtop20 下一步

	form.registerForm.mtop20(ng-show='step==2', name='regstep2form')
		.mbottom20.bold.font14.nc(ng-show='error')
			label.mrem.invisible 空白符:
			| {{error}}
		.mbottom20.editInfo
			.inputGradientBG
				.field.icons.mobile.radius8
					label.mrem(for='service_name', ng-class='{hidden : service_name.length}') 请输入用户名
					input(type='text',
						ng-model='service_name',
						name='service_name',
						gf-input,
						maxlength=16,
						required)
			.yes(ng-show='service_nameError==2')
			.no(ng-show='service_nameError==1')
			
		.mbottom20.editInfo
			.inputGradientBG
				.field.icons.pwdIcon.radius8
					label.mrem(for='password1', ng-class='{hidden : password1.length || password1Error == 1 || regstep2form.$error.minlength}') 请输入您要设置的密码
					input(type='password', gf-input, ng-model='password1', name='password1', ng-minlength='6', required, maxlength=16)
			.yes(ng-show='password1Error==2')
			.no(ng-show='password1Error==1 || regstep2form.$error.minlength')
			span.tip.gc 密码长度6~16位
			
		.mbottom20.editInfo
			.inputGradientBG
				.field.icons.pwdIcon.radius8
					label.mrem.tar.bc(ng-class='{hidden : password2.length}') 请您再次输入密码
					input(type='password', gf-input, ng-model='password2', name='password2', required, maxlength=16)
			.yes(ng-show='password2Error==2')
			.no(ng-show='password2Error==1')
			span.nc(ng-show='password2 && password1 != password2').mlem 密码不匹配
			
		.mbottom20(ng-show='isAdd')
			label
				span.mrem.tar.bc 手机号码:
				input(type='tel', gf-input, ng-model='mobile', name='mobile', required, maxlength=13).text
			.yes(ng-show='mobileError==2')
			.no(ng-show='mobileError==1')
			
		.mbottom20.editInfo
			.inputGradientBG
				.field.icons.verifyCode.radius8
					label.mrem.tar.bc(ng-class='{hidden : email.length}') 电子邮箱:
					input(type='email', gf-input, ng-model='email', name='email')
			.yes(ng-show='emailError==2')
			.no(ng-show='emailError==1')
			small.mlem 非必填
			
		div
			button(ng-click='submit2()', style='margin-top:5px;').btn 提交
			span.loading(ng-show='loading') &nbsp;
			
		.mtop30.pad30 &nbsp;
	div(ng-show='step==3')
		.pad30
			.registerSuccess(ng-show='!error')
			.registerFail.rc(ng-show='error', ng-bind='error')
			.regsuccessleft.mtop10.alignsuccess
				a.btn(style='margin-left:0;', href='javascript:;') 返回